package kr.co.doriclassic.powerjava.chapter07;

public class CarTest {
	public static void main(String[] args) {
		//Car myCar = new Car();
		//myCar.color="빨강";
		//myCar.speed=100;
		//myCar.gear=2;
		Car myCar = new Car("빨강", 100, 2);
		Car myCar2 = myCar;
		//Car myCar = new Car();
		//System.out.println(myCar);
		//myCar.print();
		myCar.setColor("Red");
		myCar.setSpeed(150);
		myCar.setGear(5);
		//System.out.println(myCar.toString());
		myCar2.setColor("Orange");
		System.out.println(myCar);
		System.out.println(myCar2);
		
		Car yourCar = new Car("파랑", 200, 4);
		//yourCar.print();
		System.out.println(yourCar);
	}
}
